<?php

return [
    [
        'label'   => '项目管理',
        'url'     => ['#'], // 一级菜单，可以设个url，如果是两级以上菜单，url会无效
        'match'   => '@^/pms.*@',
        'visible' => true,
        'icon' => 'fa fa-cog',
        // items可以为空，即没下级菜单
        'items'   => [
            [
                'label' => '项目列表',
                'url'   => ['/pms/project'],
                'match' => ['@^/pms/project.*@'],
                'auth'  => [
                    'route:pms/project/index',
                    'route:pms/project/save',
                    'route:pms/project/manage',
                    'route:pms/project/remove',
                    'route:pms/project/move',
                    'route:pms/task/index',
                ],
            ],
            /*
            [
                'label' => '我的任务',
                'url'   => ['/pms/task'],
                'match' => ['@^/pms/task.*@'],
                'auth'  => [
                    'route:pms/project/index',
                    'route:pms/project/save',
                    'route:pms/project/manage',
                    'route:pms/project/remove',
                    'route:pms/project/move',
                    'route:pms/task/index',
                ],
            ],
            */
        ],
    ],
];
